<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="vue.js"></script>
    <script src="vue-resource.min.js"></script>
    <title>Title</title>
</head>
<body>
<div id="box">
    <input type="button" value="按钮" @click="get()">
    <ul>
        <li v-for="item in users">
            id:{{item.id}}
            <br>
            username:{{item.username}}
        </li>
    </ul>
</div>
</body>
<script>
    var app = new Vue({
        el: '#box',
        data: {
            username:'',
            password:'',
            users:[]
        },
        methods:{
            get: function () {
               this.$http.jsonp('https://sp0.baidu.com/5a1Fazu8AA54nxGko9WTAnF6hhy/su',{
                    wd: 'dsadsa'
               },{
                  jsonp:'cb'
               }).then(function (res) {
                    console.log(res);
               },function (res) {
                   console.log(res);
               });
            }
        }
    })
</script>
</html>